package com.petHis.project.system.financial.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.petHis.framework.aspectj.lang.annotation.Excel;
import com.petHis.framework.web.domain.BaseEntity;

/**
 * 财务收支记录对象 financial_record
 * 
 * @author petHis
 * @date 2025-02-24
 */
public class FinancialRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 字典数据编码，关联字典数据表中的财务记录类型 */
    @Excel(name = "字典数据编码，关联字典数据表中的财务记录类型")
    private Long dictCode;

    /** 金额 */
    @Excel(name = "金额")
    private BigDecimal amount;

    /** 记录日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "记录日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordDate;

    /** 关联ID（如员工ID、药品ID、就诊记录ID等） */
    @Excel(name = "关联ID", readConverterExp = "如=员工ID、药品ID、就诊记录ID等")
    private Long relatedId;

    /** 关联信息 */
    @Excel(name = "关联信息")
    private String relateName;

    /** 备注 */
    @Excel(name = "备注")
    private String remark;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }

    public void setDictCode(Long dictCode) 
    {
        this.dictCode = dictCode;
    }

    public Long getDictCode() 
    {
        return dictCode;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setRecordDate(Date recordDate) 
    {
        this.recordDate = recordDate;
    }

    public Date getRecordDate() 
    {
        return recordDate;
    }

    public void setRelatedId(Long relatedId) 
    {
        this.relatedId = relatedId;
    }

    public Long getRelatedId() 
    {
        return relatedId;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRelateName() {
        return relateName;
    }

    public void setRelateName(String relateName) {
        this.relateName = relateName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("dictCode", getDictCode())
            .append("amount", getAmount())
            .append("recordDate", getRecordDate())
            .append("relatedId", getRelatedId())
            .append("remark", getRemark())
            .append("relateName", getRelateName())
            .toString();
    }
}
